//part1:C03:ex3.25.cpp
#include <iostream>
#include <vector>

int main(void)
{
    using namespace std;
    vector<unsigned> vUS(11);
    auto it = vUS.begin();
    int iVal;
    cout << "Enter some score (0 ~ 100):\n";
    while (cin >> iVal)
    {
        if (iVal < 101)
        {
            ++*(it + iVal / 10);
        }
    }
    cout << "total of scores is :" << vUS.size() << endl;
    cout << "distribution of scores is :" << endl;
    for (it = vUS.begin(); it != vUS.end(); it++)
    {
        cout << *it << " ";
    }
    cout << endl;
    
    return 0;
}